package com.example.healthsystem.mapper;


import com.example.healthsystem.entity.healthreg;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;
import java.util.List;

@Repository
@Mapper
public interface HealthregMapper {
    // --- 登记当前信息 ----
    int insertHealth(healthreg healthreg);
    // --- delete health register infomation ---
    int deleteReginfo(String name);
    // --- update health register ---
    int changeReginfo(String name,healthreg healthreg);
// === search info ===
    // --- 查询个人历史登记信息 ---
    List<healthreg> searchHealthPer(String name);
    // ---- search all health register info ---
    List<healthreg> searchHealth();
    // --- search health infomation base on regtime
    healthreg searchHealthDate(String name,Timestamp time);
}
